<table class="table table-bordered sku-table">
    <thead>
    <tr>
        <th class="actions-col"></th>
        <th>SKU 编号</th>
        <#list skuPropertyList as skuPro>
            <th>${skuPro.name}</th>
        </#list>
        <th>售价</th>
        <th>库存</th>
    </tr>
    </thead>
    <tbody>
    <#list skuList as sku>
    <tr>
        <td class="actions-col">
            <button type="button" class="btn btn-default js-remove">
                移除
            </button>
        </td>
        <td>
            <input class="form-control" name="productSkuList[${sku_index}].code" value="${sku['code']}">
        </td>
        <#list skuPropertyList as skuPro>
            <th>
                ${sku['${skuPro.id}']}
                <input type="hidden" name="productSkuList[${sku_index}].productSkuPropertyList[${skuPro_index}].skuProperty.id" value="${skuPro.id}">
                <input type="hidden" name="productSkuList[${sku_index}].productSkuPropertyList[${skuPro_index}].value" value="${sku['${skuPro.id}']}">
            </th>
        </#list>

        <td>
            <input class="form-control price-input" name="productSkuList[${sku_index}].price" value="${sku['price']}">
        </td>
        <td>
            <input class="form-control price-input" name="productSkuList[${sku_index}].stock" value="10000">
        </td>
    </tr>
    </#list>
    </tbody>
</table>
<script>
    $('.sku-table').on('click', '.js-remove', function(){
        $(this).closest('tr').remove();
    });

</script>